package com.backend.demo1.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.backend.demo1.models.MinorMember;

@Mapper
public interface MinorMemberMapper {

    void insert(MinorMember MinorMember);

    MinorMember findById(Long id);

    List<MinorMember> findAll();

    void update(MinorMember MinorMember);

    void deleteById(Long id);

    // 检查是否存在该会员（通过 userId）
    int existsByUserId(@Param("userId") Long userId);
}